package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信退款回调参数
 */
@Data
public class WeChatRefundCallbackVo implements Serializable {

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    @JsonProperty("transaction_id")
    private String transactionId;

    @JsonProperty("out_refund_no")
    private String outRefundNo;

    @JsonProperty("refund_id")
    private String refundId;

    @JsonProperty("refund_status")
    private String refundStatus;

    private String flag;

    private WeChatRefundCallbackAmountVo amount;


    @Data
    public static class WeChatRefundCallbackAmountVo {

        private Integer total;

        private Integer refund;

        @JsonProperty("payer_total")
        private Integer payerTotal;

        @JsonProperty("payer_refund")
        private Integer payerRefund;

    }

}
